from core.room import Room
from core.basehandler import BaseHandler

class FailureRoom(Room):
    
    def __init__(self, room_id):
        Room.__init__(self, room_id)    # do basic initialization for every room
    
    # return description of room.
    def get_description(self):
        return '''
        You've jumped from the second floor, using your grappling hook to land on the globe. 
        The globe becomes dislodged from its foundation. Unfortunately you are too tired to hold on 
        and the globe crushes you underneath it. Zombies feast on your corpse.  If only you had a 
        caffeine buzz for the extra energy needed to hold on. Failure!  
         '''
    
    # return image of room
    def get_image(self):
        return 'failure.jpg'

class FailureRoomHandler(BaseHandler):
    
    # override default template to omit the inventory and actions
    def get_template(self):
        return 'victory.html'
    
    # return class to use to create a new instance of this room
    def get_room_class(self):
        return FailureRoom

# define actions for this room
